package com.example.demo.model;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("test")
@Controller
public class ReadymlController {
    @Autowired
    private Student student;

    @RequestMapping("readStudent")
    public String readStudent(){
        return "从yml中获取配置文件Student" + student;
    }
}
